-
Notifications
You must be signed in to change notification settings - Fork 875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(framework) Add template to create a Flower Baseline #3979
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! I only made one small suggestion for a typo.
Co-authored-by: Taner Topal <taner@flower.dev>
line_length = 88 | ||
indent = " " | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
force_grid_wrap = 0 | ||
use_parentheses = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a newer version of this where isort supports a black
profile?
[tool.flwr.app] | ||
publisher = "$username" | ||
|
||
[tool.flwr.app.components] | ||
serverapp = "$import_name.server_app:app" | ||
clientapp = "$import_name.client_app:app" | ||
|
||
[tool.flwr.app.config] | ||
num-server-rounds = 3 | ||
fraction-fit = 0.5 | ||
local-epochs = 1 | ||
|
||
[tool.flwr.federations] | ||
default = "local-simulation" | ||
|
||
[tool.flwr.federations.local-simulation] | ||
options.num-supernodes = 10 | ||
options.backend.client-resources.num-cpus = 2 | ||
options.backend.client-resources.num-gpus = 0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we perhaps move tool.flwr
ahead of all the other configs (the ones we expect users not to edit)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought of keeping it as in the rest of templates and (migrated) examples
Co-authored-by: Daniel J. Beutel <daniel@flower.ai>
Adds template creation logic for a new Flower Baseline.
It reutilises components from the
PoTorch
template. It will generate the following directory structure: